package com.szpx.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * @author June
 * @version 1.0.0
 * @title Goods
 * @create 2024/3/28 16:30
 * @description
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "tb_goods")
public class Goods {
    @Column(name = "gid")
    private Integer gid;        //商品id

    @Column(name = "url")
    private String url;         //商品图片地址

    @Column(name = "price")
    private BigDecimal price;   // 使用 BigDecimal 不会损失精度

    @Column(name = "title")
    private String title;       //商品标题

    @Column(name = "shop")
    private String shop;        //商品所属店铺

    @Column(name = "type")
    private String type;        //商品类型

}
